package com.cap.bts.crmdp.dealer.masterinfo.domain;

import java.io.Serializable;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.cap.bts.framework.common.domain.BaseDomain;

@Entity
@Table(name = "TM_SERVICE_DEF")
@AttributeOverrides({
                     @AttributeOverride(name = "createBy", column = @Column(name = "CREATE_BY")),
                     @AttributeOverride(name = "createDate", column = @Column(name = "CREATE_DATE", nullable = false)),
                     @AttributeOverride(name = "lastUpdateBy", column = @Column(name = "LAST_UPDATE_BY")),
                     @AttributeOverride(name = "lastUpdateDate", column = @Column(name = "LAST_UPDATE_DATE")) })
public class ServiceInfoDefModel extends BaseDomain implements Serializable {
    private static final long serialVersionUID = 8992485389224183898L;

    private Long              id;

    private String            code;

    private String            name;

    /** 
     * Getter method for property <tt>id</tt>. 
     * @return property value of id 
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    /** 
     * Setter method for property <tt>id</tt>. 
     * @param id value to be assigned to property id 
     */

    public void setId(Long id) {
        this.id = id;
    }

    /** 
     * Getter method for property <tt>code</tt>. 
     * @return property value of code 
     */
    @Column(name = "CODE")
    public String getCode() {
        return code;
    }

    /** 
     * Setter method for property <tt>code</tt>. 
     * @param code value to be assigned to property code 
     */

    public void setCode(String code) {
        this.code = code;
    }

    /** 
     * Getter method for property <tt>name</tt>. 
     * @return property value of name 
     */
    @Column(name = "NAME")
    public String getName() {
        return name;
    }

    /** 
     * Setter method for property <tt>name</tt>. 
     * @param name value to be assigned to property name 
     */

    public void setName(String name) {
        this.name = name;
    }

}
